﻿#ifndef HTTP_H
#define HTTP_H

#include <QObject>
#include <QUrl>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QEventLoop>
#include <QFile>

class http : public QObject
{
    Q_OBJECT
public:
    explicit http(QObject *parent = nullptr);
    void Get(QUrl u,QString filename);
    void Save(QUrl u,QString filename);
    void replyFinished(QNetworkReply *r);
private:
    QUrl url;
    QNetworkReply  *reply;
    QNetworkAccessManager  manger;
    QString html_text;
signals:

};

#endif // HTTP_H
